<?php
/*
require_once '../lib/sendega.php';

$sms = new sms('2403', 'oipt737oi!', 'IAESTE Test');

isset($_POST['destination']) ? $number = $_POST['destination'] : $number = null;
isset($_POST['content']) ? $message = $_POST['content'] : $message = null;

if(isset($_POST['submit'])){
    $r = $sms->sendSMS($number, $message);
    echo $r;
}*/
require_once '../lib/txtlocal.php';

$sms = new txtlocal(1, 0, 'IAESTE Norway');
$r = null;
if(isset($_POST['submit'])) {
    $r = $sms->sendSMS($_POST['destination'], $_POST['content']);
    echo $r;
}
?>
<form action="" name="sms" method="post">
    Nummer:<br/>
    <input type="text" size="10" name="destination"/>
    <br/><br/>
    Message:<br/>
    <textarea name="content"></textarea>
    <input type="submit" name="submit" value="Send"/>
</form>

<!--

    <input type="hidden" name="sender" value="IAESTE Test"/>
    <input type="hidden" name="ageLimit" value="0"/>
    <input type="hidden" name="priority" value="-1"/>
    <input type="hidden" name="contentTypeID" value="1"/>
    <input type="hidden" name="gwID" value="0"/>
    <input type="hidden" name="pid" value="0"/>
    <input type="hidden" name="dcs" value="0"/>
    <input type="hidden" name="dlrUrl" value=""/>
    <input type="hidden" name="pricegroup" value="0"/>
    <input type="hidden" name="contentHeader" value=""/>
    <input type="hidden" name="username" value="2403"/>
    <input type="hidden" name="password" value="oipt737oi!"/>
    <input type="hidden" name="extID" value=""/>
    <input type="hidden" name="refID" value=""/>
    <input type="hidden" name="sendDate" value=""/>
-->